<?php
namespace TennisTournament\Service;

use TennisTournament\Model\Result;

interface ResultService {

    /**
     * Get all taken scores for the specific {@link Match}
     * @param array $results from {@link Result}
     * @param $hostOrGuest string from {@link WinnerEnum}
     * @return integer
     */
    public function getAllTakenScores(array $results, $hostOrGuest);

    /**
     * Get all get scores for the specific {@link Match}
     * @param array $results from {@link Result}
     * @param $hostOrGuest string from {@link WinnerEnum}
     * @return integer
     */
    public function getAllGetScores(array $results, $hostOrGuest);

    /**
     * Encode a Result into a JSON format
     * @param Result $result
     * @return string
     */
    public function toJSON(Result $result);

}